program q122;
const
    p = 3.1415927;
var
    cnt, revolution: longint;
    diameter, time, dis, ans: real;
begin
    assign(input, '');
    assign(output, '');
    reset(input);
    rewrite(output);

    cnt := 1;
    while (not seekeof) do
    begin
        readln(diameter, revolution, time);
        if (revolution = 0) then break;

        dis := p * diameter * revolution / 12 / 5280;
        ans := dis / (time / 60 / 60);

        writeln('Trip #', cnt, ': ', dis:0:2, ' ', ans:0:2);

        inc(cnt);
    end;

    close(input);
    close(output);
end.
